package com.xx.eurekaclient;

import org.springframework.web.bind.annotation.*;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@Api(tags = "聚合api测试")
@RestController
public class HiController {
	@ApiOperation(value = "测试方法")
	@GetMapping("/hi")
    public Student home(@RequestParam String name) {
        Student student = new Student();
        student.setName("123");
        return student;
    }


    @ApiOperation(value = "测试方法2")
    @PostMapping("/hi2")
    public Student home2(@RequestBody Student student) {
        Student student1 = new Student();
        student1.setName("yangxing");
        return student1;
    }
}
